import com.ruoyi.RuoYiApplication;
import com.ruoyi.celoan.service.statistics.ExPrivatelyOperatedStatisticsServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;

@SpringBootTest(classes = RuoYiApplication.class)
public class testJava {

    @Autowired
    private ApplicationContext context;

    @Test
    void testFunction (){
        ExPrivatelyOperatedStatisticsServiceImpl bean = context.getBean(ExPrivatelyOperatedStatisticsServiceImpl.class);
        bean.calculateOperatedStatistics();
    }
}
